#-------------------------------------------------
#
# Project
#
#-------------------------------------------------


#include
include(../../BaseTotalPri/BaseTotal.pri)

# CODE   GBK UTF-8 UTF-16BE
win32{
    CODECFORSRC=GBK
}else:unix{
    CODECFORSRC=UTF-8
}

#define USING_GUI
#DEFINES     += USING_GUI
contains(DEFINES,USING_GUI){
QT          += core gui widgets xml sql
}else{
QT          += core xml sql
QT          -= gui
}


greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# TYPE  app lib sudbirs
TEMPLATE = app

# CONFIG
CONFIG += build_all
CONFIG += debug_and_relased
win32{
    CONFIG += c++11
}else:unix{
    QMAKE_CXXFLAGS += -std=c++0x
}


# TARGET
TARGET = $$qtLibraryTarget(MainFrameWork)

#PROJECT_PATH
INCLUDE_DIR     = $${DEV_HOME}/include
DEST_DIR_D      = $${DEV_HOME}/dbin$${QT_VERSION}
DEST_DIR_R      = $${DEV_HOME}/rbin$${QT_VERSION}
LIB_DIR         = $${DEV_HOME}/libs



# INCLUDE_PATH
INCLUDEPATH += $${INCLUDE_DIR}
INCLUDEPATH += $${INCLUDE_DIR}/CFSCoreFrame
INCLUDEPATH += $${INCLUDE_DIR}/CFSPluginFrame
INCLUDEPATH += $${INCLUDE_DIR}/Service


# OUT_INFO
win32{
CONFIG(debug,debug|release){
    DESTDIR = $${DEST_DIR_D}
    TARGET = $$member(TARGET, 0)d
    LIBS += -L$$PWD/../../libs/
    LIBS += -L$$DEST_DIR_D/
    LIBS += -lCFSCore
    LIBS += -lCFSPluginFrame
}
CONFIG(release,debug|release){
    DESTDIR = $${DEST_DIR_R}
    TARGET = $$member(TARGET, 0)r
    LIBS += -L$$PWD/../../libs/
    LIBS += -L$$DEST_DIR_R/
    LIBS += -lCFSCore
    LIBS += -lCFSPluginFrame
}
}
else:unix{
CONFIG(debug,debug|release){
    DESTDIR = $${DEST_DIR_D}
    LIBS += -L$${DEST_DIR_D}
    LIBS += -lCFSCore
    LIBS += -lCFSPluginFrame
}
CONFIG(release,debug|release){
    DESTDIR = $${DEST_DIR_R}
    LIBS += -L$${DEST_DIR_R}
    LIBS += -lCFSCore
    LIBS += -lCFSPluginFrame
}
}


#ASSERTIONS
DEFINES += FRAMEWORK_LIBRARY
DEFINES += QT_DEPRECATED_WARNINGS


# other
OTHER_FILES +=

# builder
QMAKE_CXXFLAGS +=

# language
CONFIG += localize_deployment
SYMBIAN_SUPPORTED_LANGUAGES += zh_CN
SYMBIAN_LANG.zh_CN = 31
TRANSLATIONS = MainFrameWork_zh_CN.ts


# depends
DEPENDPATH +=


#SOURCES_FILE
SOURCES += \
        main.cpp \
        mainframe.cpp



#HEADERS_FILE
HEADERS += \
        mainframe.h \
        imainframeservice.h


#FORMS_FILE
FORMS +=

#MAINFRAMEWORK_LOGO
RC_FILE = MainFrameWorkLogo.rc

#RESOURCES_FILE
RESOURCES +=

#QMAKE_POST_LINK +=cp  ../bin*.lib ../../bin

#删除configuration目录,待完善
#CONF_DIR = $$absolute_path($$DESTDIR/configuration)
#CONF_DIR = $$replace(CONF_DIR, /, \\)

#exists($$CONF_DIR)
#{
#    QMAKE_POST_LINK += rmdir /S /Q \"$$CONF_DIR\"
#    message ($$QMAKE_POST_LINK)
#}

